home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MPWGCC (Sources).cpt / Sources / genconfig.c < prev    next >
MacBinary  |  1990-11-13  |  6.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Nov 13 15:06:24 1990, modified Tue Nov 13 15:06:24 1990, creator 'MPS ', type ASCII, 6385 bytes "genconfig.c" , at 0x1971 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 67 65 6e 63 6f 6e | 66 69 67 2e 63 00 00 00 |..gencon|fig.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 18 f1 00 | 00 01 ac a3 66 02 c0 a3 |........|....f...|
|00000060| 66 02 c0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |f.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5b 1a 00 00 |........|....[...|
|00000080| 2f 2a 20 47 65 6e 65 72 | 61 74 65 20 66 72 6f 6d |/* Gener|ate from|
|00000090| 20 6d 61 63 68 69 6e 65 | 20 64 65 73 63 72 69 70 | machine| descrip|
|000000a0| 74 69 6f 6e 3a 0d 0d 20 | 20 20 2d 20 73 6f 6d 65 |tion:.. | - some|
|000000b0| 20 23 64 65 66 69 6e 65 | 20 63 6f 6e 66 69 67 75 | #define| configu|
|000000c0| 72 61 74 69 6f 6e 20 66 | 6c 61 67 73 2e 0d 20 20 |ration f|lags.. |
|000000d0| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|000000e0| 39 38 37 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |987 Free| Softwar|
|000000f0| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 2c 20 49 6e |e Founda|tion, In|
|00000100| 63 2e 0d 20 20 20 43 6f | 70 79 72 69 67 68 74 20 |c.. Co|pyright |
|00000110| 28 43 29 20 31 39 38 39 | 2c 20 31 39 39 30 20 41 |(C) 1989|, 1990 A|
|00000120| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000130| 6e 63 2e 0d 0d 54 68 69 | 73 20 66 69 6c 65 20 69 |nc...Thi|s file i|
|00000140| 73 20 70 61 72 74 20 6f | 66 20 47 4e 55 20 43 43 |s part o|f GNU CC|
|00000150| 2e 0d 0d 47 4e 55 20 43 | 43 20 69 73 20 66 72 65 |...GNU C|C is fre|
|00000160| 65 20 73 6f 66 74 77 61 | 72 65 3b 20 79 6f 75 20 |e softwa|re; you |
|00000170| 63 61 6e 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |can redi|stribute|
|00000180| 20 69 74 20 61 6e 64 2f | 6f 72 20 6d 6f 64 69 66 | it and/|or modif|
|00000190| 79 0d 69 74 20 75 6e 64 | 65 72 20 74 68 65 20 74 |y.it und|er the t|
|000001a0| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|000001b0| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|000001c0| 69 63 65 6e 73 65 20 61 | 73 20 70 75 62 6c 69 73 |icense a|s publis|
|000001d0| 68 65 64 20 62 79 0d 74 | 68 65 20 46 72 65 65 20 |hed by.t|he Free |
|000001e0| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|000001f0| 69 6f 6e 3b 20 65 69 74 | 68 65 72 20 76 65 72 73 |ion; eit|her vers|
|00000200| 69 6f 6e 20 31 2c 20 6f | 72 20 28 61 74 20 79 6f |ion 1, o|r (at yo|
|00000210| 75 72 20 6f 70 74 69 6f | 6e 29 0d 61 6e 79 20 6c |ur optio|n).any l|
|00000220| 61 74 65 72 20 76 65 72 | 73 69 6f 6e 2e 0d 0d 47 |ater ver|sion...G|
|00000230| 4e 55 20 43 43 20 69 73 | 20 64 69 73 74 72 69 62 |NU CC is| distrib|
|00000240| 75 74 65 64 20 69 6e 20 | 74 68 65 20 68 6f 70 65 |uted in |the hope|
|00000250| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 62 65 | that it| will be|
|00000260| 20 75 73 65 66 75 6c 2c | 0d 62 75 74 20 57 49 54 | useful,|.but WIT|
|00000270| 48 4f 55 54 20 41 4e 59 | 20 57 41 52 52 41 4e 54 |HOUT ANY| WARRANT|
|00000280| 59 3b 20 77 69 74 68 6f | 75 74 20 65 76 65 6e 20 |Y; witho|ut even |
|00000290| 74 68 65 20 69 6d 70 6c | 69 65 64 20 77 61 72 72 |the impl|ied warr|
|000002a0| 61 6e 74 79 20 6f 66 0d | 4d 45 52 43 48 41 4e 54 |anty of.|MERCHANT|
|000002b0| 41 42 49 4c 49 54 59 20 | 6f 72 20 46 49 54 4e 45 |ABILITY |or FITNE|
|000002c0| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|000002d0| 4c 41 52 20 50 55 52 50 | 4f 53 45 2e 20 20 53 65 |LAR PURP|OSE. Se|
|000002e0| 65 20 74 68 65 0d 47 4e | 55 20 47 65 6e 65 72 61 |e the.GN|U Genera|
|000002f0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|00000300| 20 66 6f 72 20 6d 6f 72 | 65 20 64 65 74 61 69 6c | for mor|e detail|
|00000310| 73 2e 0d 0d 59 6f 75 20 | 73 68 6f 75 6c 64 20 68 |s...You |should h|
|00000320| 61 76 65 20 72 65 63 65 | 69 76 65 64 20 61 20 63 |ave rece|ived a c|
|00000330| 6f 70 79 20 6f 66 20 74 | 68 65 20 47 4e 55 20 47 |opy of t|he GNU G|
|00000340| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|00000350| 63 65 6e 73 65 0d 61 6c | 6f 6e 67 20 77 69 74 68 |cense.al|ong with|
|00000360| 20 47 4e 55 20 43 43 3b | 20 73 65 65 20 74 68 65 | GNU CC;| see the|
|00000370| 20 66 69 6c 65 20 43 4f | 50 59 49 4e 47 2e 20 20 | file CO|PYING. |
|00000380| 49 66 20 6e 6f 74 2c 20 | 77 72 69 74 65 20 74 6f |If not, |write to|
|00000390| 0d 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 |.the Fre|e Softwa|
|000003a0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 2c 20 36 |re Found|ation, 6|
|000003b0| 37 35 20 4d 61 73 73 20 | 41 76 65 2c 20 43 61 6d |75 Mass |Ave, Cam|
|000003c0| 62 72 69 64 67 65 2c 20 | 4d 41 20 30 32 31 33 39 |bridge, |MA 02139|
|000003d0| 2c 20 55 53 41 2e 20 20 | 2a 2f 0d 0d 0d 23 69 6e |, USA. |*/...#in|
|000003e0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0d |clude <s|tdio.h>.|
|000003f0| 23 69 6e 63 6c 75 64 65 | 20 22 63 6f 6e 66 69 67 |#include| "config|
|00000400| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 72 74 |.h".#inc|lude "rt|
|00000410| 6c 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 6f |l.h".#in|clude "o|
|00000420| 62 73 74 61 63 6b 2e 68 | 22 0d 0d 73 74 72 75 63 |bstack.h|"..struc|
|00000430| 74 20 6f 62 73 74 61 63 | 6b 20 6f 62 73 74 61 63 |t obstac|k obstac|
|00000440| 6b 3b 0d 73 74 72 75 63 | 74 20 6f 62 73 74 61 63 |k;.struc|t obstac|
|00000450| 6b 20 2a 72 74 6c 5f 6f | 62 73 74 61 63 6b 20 3d |k *rtl_o|bstack =|
|00000460| 20 26 6f 62 73 74 61 63 | 6b 3b 0d 0d 23 64 65 66 | &obstac|k;..#def|
|00000470| 69 6e 65 20 6f 62 73 74 | 61 63 6b 5f 63 68 75 6e |ine obst|ack_chun|
|00000480| 6b 5f 61 6c 6c 6f 63 20 | 78 6d 61 6c 6c 6f 63 0d |k_alloc |xmalloc.|
|00000490| 23 64 65 66 69 6e 65 20 | 6f 62 73 74 61 63 6b 5f |#define |obstack_|
|000004a0| 63 68 75 6e 6b 5f 66 72 | 65 65 20 66 72 65 65 0d |chunk_fr|ee free.|
|000004b0| 65 78 74 65 72 6e 20 69 | 6e 74 20 78 6d 61 6c 6c |extern i|nt xmall|
|000004c0| 6f 63 20 28 29 3b 0d 65 | 78 74 65 72 6e 20 76 6f |oc ();.e|xtern vo|
|000004d0| 69 64 20 66 72 65 65 20 | 28 29 3b 0d 0d 2f 2a 20 |id free |();../* |
|000004e0| 66 6c 61 67 73 20 74 6f | 20 64 65 74 65 72 6d 69 |flags to| determi|
|000004f0| 6e 65 20 6f 75 74 70 75 | 74 20 6f 66 20 6d 61 63 |ne outpu|t of mac|
|00000500| 68 69 6e 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |hine des|cription|
|00000510| 20 64 65 70 65 6e 64 65 | 6e 74 20 23 64 65 66 69 | depende|nt #defi|
|00000520| 6e 65 27 73 2e 20 20 2a | 2f 0d 69 6e 74 20 6d 61 |ne's. *|/.int ma|
|00000530| 78 5f 72 65 63 6f 67 5f | 6f 70 65 72 61 6e 64 73 |x_recog_|operands|
|00000540| 5f 66 6c 61 67 3b 0d 69 | 6e 74 20 6d 61 78 5f 64 |_flag;.i|nt max_d|
|00000550| 75 70 5f 6f 70 65 72 61 | 6e 64 73 5f 66 6c 61 67 |up_opera|nds_flag|
|00000560| 3b 0d 69 6e 74 20 6d 61 | 78 5f 63 6c 6f 62 62 65 |;.int ma|x_clobbe|
|00000570| 72 73 5f 70 65 72 5f 69 | 6e 73 6e 5f 66 6c 61 67 |rs_per_i|nsn_flag|
|00000580| 3b 0d 69 6e 74 20 72 65 | 67 69 73 74 65 72 5f 63 |;.int re|gister_c|
|00000590| 6f 6e 73 74 72 61 69 6e | 74 5f 66 6c 61 67 3b 0d |onstrain|t_flag;.|
|000005a0| 0d 69 6e 74 20 63 6c 6f | 62 62 65 72 73 5f 73 65 |.int clo|bbers_se|
|000005b0| 65 6e 5f 74 68 69 73 5f | 69 6e 73 6e 3b 0d 69 6e |en_this_|insn;.in|
|000005c0| 74 20 64 75 70 5f 6f 70 | 65 72 61 6e 64 73 5f 73 |t dup_op|erands_s|
|000005d0| 65 65 6e 5f 74 68 69 73 | 5f 69 6e 73 6e 3b 0d 0d |een_this|_insn;..|
|000005e0| 76 6f 69 64 20 66 61 74 | 61 6c 20 28 29 3b 0d 76 |void fat|al ();.v|
|000005f0| 6f 69 64 20 66 61 6e 63 | 79 5f 61 62 6f 72 74 20 |oid fanc|y_abort |
|00000600| 28 29 3b 0d 0d 76 6f 69 | 64 0d 77 61 6c 6b 5f 69 |();..voi|d.walk_i|
|00000610| 6e 73 6e 5f 70 61 72 74 | 20 28 70 61 72 74 29 0d |nsn_part| (part).|
|00000620| 20 20 20 20 20 72 74 78 | 20 70 61 72 74 3b 0d 7b | rtx| part;.{|
|00000630| 0d 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |. regis|ter int |
|00000640| 69 2c 20 6a 3b 0d 20 20 | 72 65 67 69 73 74 65 72 |i, j;. |register|
|00000650| 20 52 54 58 5f 43 4f 44 | 45 20 63 6f 64 65 3b 0d | RTX_COD|E code;.|
|00000660| 20 20 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 | regist|er char |
|00000670| 2a 66 6f 72 6d 61 74 5f | 70 74 72 3b 0d 0d 20 20 |*format_|ptr;.. |
|00000680| 69 66 20 28 70 61 72 74 | 20 3d 3d 20 30 29 0d 20 |if (part| == 0). |
|00000690| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0d 20 20 63 6f | retur|n;.. co|
|000006a0| 64 65 20 3d 20 47 45 54 | 5f 43 4f 44 45 20 28 70 |de = GET|_CODE (p|
|000006b0| 61 72 74 29 3b 0d 20 20 | 73 77 69 74 63 68 20 28 |art);. |switch (|
|000006c0| 63 6f 64 65 29 0d 20 20 | 20 20 7b 0d 20 20 20 20 |code). | {. |
|000006d0| 63 61 73 65 20 43 4c 4f | 42 42 45 52 3a 0d 20 20 |case CLO|BBER:. |
|000006e0| 20 20 20 20 63 6c 6f 62 | 62 65 72 73 5f 73 65 65 | clob|bers_see|
|000006f0| 6e 5f 74 68 69 73 5f 69 | 6e 73 6e 2b 2b 3b 0d 20 |n_this_i|nsn++;. |
|00000700| 20 20 20 20 20 62 72 65 | 61 6b 3b 0d 0d 20 20 20 | bre|ak;.. |
|00000710| 20 63 61 73 65 20 4d 41 | 54 43 48 5f 4f 50 45 52 | case MA|TCH_OPER|
|00000720| 41 4e 44 3a 0d 20 20 20 | 20 20 20 69 66 20 28 58 |AND:. | if (X|
|00000730| 49 4e 54 20 28 70 61 72 | 74 2c 20 30 29 20 3e 20 |INT (par|t, 0) > |
|00000740| 6d 61 78 5f 72 65 63 6f | 67 5f 6f 70 65 72 61 6e |max_reco|g_operan|
|00000750| 64 73 5f 66 6c 61 67 29 | 0d 09 6d 61 78 5f 72 65 |ds_flag)|..max_re|
|00000760| 63 6f 67 5f 6f 70 65 72 | 61 6e 64 73 5f 66 6c 61 |cog_oper|ands_fla|
|00000770| 67 20 3d 20 58 49 4e 54 | 20 28 70 61 72 74 2c 20 |g = XINT| (part, |
|00000780| 30 29 3b 0d 20 20 20 20 | 20 20 69 66 20 28 58 53 |0);. | if (XS|
|00000790| 54 52 20 28 70 61 72 74 | 2c 20 32 29 20 26 26 20 |TR (part|, 2) && |
|000007a0| 2a 58 53 54 52 20 28 70 | 61 72 74 2c 20 32 29 29 |*XSTR (p|art, 2))|
|000007b0| 0d 09 72 65 67 69 73 74 | 65 72 5f 63 6f 6e 73 74 |..regist|er_const|
|000007c0| 72 61 69 6e 74 5f 66 6c | 61 67 20 3d 20 31 3b 0d |raint_fl|ag = 1;.|
|000007d0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 0d 20 | re|turn;.. |
|000007e0| 20 20 20 63 61 73 65 20 | 4d 41 54 43 48 5f 4f 50 | case |MATCH_OP|
|000007f0| 45 52 41 54 4f 52 3a 0d | 20 20 20 20 20 20 69 66 |ERATOR:.| if|
|00000800| 20 28 58 49 4e 54 20 28 | 70 61 72 74 2c 20 30 29 | (XINT (|part, 0)|
|00000810| 20 3e 20 6d 61 78 5f 72 | 65 63 6f 67 5f 6f 70 65 | > max_r|ecog_ope|
|00000820| 72 61 6e 64 73 5f 66 6c | 61 67 29 0d 09 6d 61 78 |rands_fl|ag)..max|
|00000830| 5f 72 65 63 6f 67 5f 6f | 70 65 72 61 6e 64 73 5f |_recog_o|perands_|
|00000840| 66 6c 61 67 20 3d 20 58 | 49 4e 54 20 28 70 61 72 |flag = X|INT (par|
|00000850| 74 2c 20 30 29 3b 0d 20 | 20 20 20 20 20 2f 2a 20 |t, 0);. | /* |
|00000860| 4e 6f 77 20 73 63 61 6e | 20 74 68 65 20 72 74 6c |Now scan| the rtl|
|00000870| 27 78 20 69 6e 20 74 68 | 65 20 76 65 63 74 6f 72 |'x in th|e vector|
|00000880| 20 69 6e 73 69 64 65 20 | 74 68 65 20 6d 61 74 63 | inside |the matc|
|00000890| 68 5f 6f 70 65 72 61 74 | 6f 72 2e 20 20 2a 2f 0d |h_operat|or. */.|
|000008a0| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0d 0d 20 20 | br|eak;.. |
|000008b0| 20 20 63 61 73 65 20 4c | 41 42 45 4c 5f 52 45 46 | case L|ABEL_REF|
|000008c0| 3a 0d 20 20 20 20 20 20 | 69 66 20 28 47 45 54 5f |:. |if (GET_|
|000008d0| 43 4f 44 45 20 28 58 45 | 58 50 20 28 70 61 72 74 |CODE (XE|XP (part|
|000008e0| 2c 20 30 29 29 20 3d 3d | 20 4d 41 54 43 48 5f 4f |, 0)) ==| MATCH_O|
|000008f0| 50 45 52 41 4e 44 29 0d | 09 62 72 65 61 6b 3b 0d |PERAND).|.break;.|
|00000900| 20 20 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 0d 20 | re|turn;.. |
|00000910| 20 20 20 63 61 73 65 20 | 4d 41 54 43 48 5f 44 55 | case |MATCH_DU|
|00000920| 50 3a 0d 20 20 20 20 20 | 20 2b 2b 64 75 70 5f 6f |P:. | ++dup_o|
|00000930| 70 65 72 61 6e 64 73 5f | 73 65 65 6e 5f 74 68 69 |perands_|seen_thi|
|00000940| 73 5f 69 6e 73 6e 3b 0d | 20 20 20 20 20 20 69 66 |s_insn;.| if|
|00000950| 20 28 58 49 4e 54 20 28 | 70 61 72 74 2c 20 30 29 | (XINT (|part, 0)|
|00000960| 20 3e 20 6d 61 78 5f 72 | 65 63 6f 67 5f 6f 70 65 | > max_r|ecog_ope|
|00000970| 72 61 6e 64 73 5f 66 6c | 61 67 29 0d 09 6d 61 78 |rands_fl|ag)..max|
|00000980| 5f 72 65 63 6f 67 5f 6f | 70 65 72 61 6e 64 73 5f |_recog_o|perands_|
|00000990| 66 6c 61 67 20 3d 20 58 | 49 4e 54 20 28 70 61 72 |flag = X|INT (par|
|000009a0| 74 2c 20 30 29 3b 0d 0d | 20 20 20 20 63 61 73 65 |t, 0);..| case|
|000009b0| 20 52 45 47 3a 20 63 61 | 73 65 20 43 4f 4e 53 54 | REG: ca|se CONST|
|000009c0| 5f 49 4e 54 3a 20 63 61 | 73 65 20 53 59 4d 42 4f |_INT: ca|se SYMBO|
|000009d0| 4c 5f 52 45 46 3a 0d 20 | 20 20 20 63 61 73 65 20 |L_REF:. | case |
|000009e0| 50 43 3a 20 63 61 73 65 | 20 43 43 30 3a 0d 20 20 |PC: case| CC0:. |
|000009f0| 20 20 20 20 72 65 74 75 | 72 6e 3b 0d 20 20 20 20 | retu|rn;. |
|00000a00| 7d 0d 0d 20 20 66 6f 72 | 6d 61 74 5f 70 74 72 20 |}.. for|mat_ptr |
|00000a10| 3d 20 47 45 54 5f 52 54 | 58 5f 46 4f 52 4d 41 54 |= GET_RT|X_FORMAT|
|00000a20| 20 28 47 45 54 5f 43 4f | 44 45 20 28 70 61 72 74 | (GET_CO|DE (part|
|00000a30| 29 29 3b 0d 0d 20 20 66 | 6f 72 20 28 69 20 3d 20 |));.. f|or (i = |
|00000a40| 30 3b 20 69 20 3c 20 47 | 45 54 5f 52 54 58 5f 4c |0; i < G|ET_RTX_L|
|00000a50| 45 4e 47 54 48 20 28 47 | 45 54 5f 43 4f 44 45 20 |ENGTH (G|ET_CODE |
|00000a60| 28 70 61 72 74 29 29 3b | 20 69 2b 2b 29 0d 20 20 |(part));| i++). |
|00000a70| 20 20 73 77 69 74 63 68 | 20 28 2a 66 6f 72 6d 61 | switch| (*forma|
|00000a80| 74 5f 70 74 72 2b 2b 29 | 0d 20 20 20 20 20 20 7b |t_ptr++)|. {|
|00000a90| 0d 20 20 20 20 20 20 63 | 61 73 65 20 27 65 27 3a |. c|ase 'e':|
|00000aa0| 0d 20 20 20 20 20 20 63 | 61 73 65 20 27 75 27 3a |. c|ase 'u':|
|00000ab0| 0d 09 77 61 6c 6b 5f 69 | 6e 73 6e 5f 70 61 72 74 |..walk_i|nsn_part|
|00000ac0| 20 28 58 45 58 50 20 28 | 70 61 72 74 2c 20 69 29 | (XEXP (|part, i)|
|00000ad0| 29 3b 0d 09 62 72 65 61 | 6b 3b 0d 20 20 20 20 20 |);..brea|k;. |
|00000ae0| 20 63 61 73 65 20 27 45 | 27 3a 0d 09 69 66 20 28 | case 'E|':..if (|
|00000af0| 58 56 45 43 20 28 70 61 | 72 74 2c 20 69 29 20 21 |XVEC (pa|rt, i) !|
|00000b00| 3d 20 4e 55 4c 4c 29 0d | 09 20 20 66 6f 72 20 28 |= NULL).|. for (|
|00000b10| 6a 20 3d 20 30 3b 20 6a | 20 3c 20 58 56 45 43 4c |j = 0; j| < XVECL|
|00000b20| 45 4e 20 28 70 61 72 74 | 2c 20 69 29 3b 20 6a 2b |EN (part|, i); j+|
|00000b30| 2b 29 0d 09 20 20 20 20 | 77 61 6c 6b 5f 69 6e 73 |+).. |walk_ins|
|00000b40| 6e 5f 70 61 72 74 20 28 | 58 56 45 43 45 58 50 20 |n_part (|XVECEXP |
|00000b50| 28 70 61 72 74 2c 20 69 | 2c 20 6a 29 29 3b 0d 09 |(part, i|, j));..|
|00000b60| 62 72 65 61 6b 3b 0d 20 | 20 20 20 20 20 7d 0d 7d |break;. | }.}|
|00000b70| 0d 0d 76 6f 69 64 0d 67 | 65 6e 5f 69 6e 73 6e 20 |..void.g|en_insn |
|00000b80| 28 69 6e 73 6e 29 0d 20 | 20 20 20 20 72 74 78 20 |(insn). | rtx |
|00000b90| 69 6e 73 6e 3b 0d 7b 0d | 20 20 69 6e 74 20 69 3b |insn;.{.| int i;|
|00000ba0| 0d 0d 20 20 2f 2a 20 57 | 61 6c 6b 20 74 68 65 20 |.. /* W|alk the |
|00000bb0| 69 6e 73 6e 20 70 61 74 | 74 65 72 6e 20 74 6f 20 |insn pat|tern to |
|00000bc0| 67 61 74 68 65 72 20 74 | 68 65 20 23 64 65 66 69 |gather t|he #defi|
|00000bd0| 6e 65 27 73 20 73 74 61 | 74 75 73 2e 20 20 2a 2f |ne's sta|tus. */|
|00000be0| 0d 20 20 63 6c 6f 62 62 | 65 72 73 5f 73 65 65 6e |. clobb|ers_seen|
|00000bf0| 5f 74 68 69 73 5f 69 6e | 73 6e 20 3d 20 30 3b 0d |_this_in|sn = 0;.|
|00000c00| 20 20 64 75 70 5f 6f 70 | 65 72 61 6e 64 73 5f 73 | dup_op|erands_s|
|00000c10| 65 65 6e 5f 74 68 69 73 | 5f 69 6e 73 6e 20 3d 20 |een_this|_insn = |
|00000c20| 30 3b 0d 20 20 69 66 20 | 28 58 56 45 43 20 28 69 |0;. if |(XVEC (i|
|00000c30| 6e 73 6e 2c 20 31 29 20 | 21 3d 20 30 29 0d 20 20 |nsn, 1) |!= 0). |
|00000c40| 20 20 66 6f 72 20 28 69 | 20 3d 20 30 3b 20 69 20 | for (i| = 0; i |
|00000c50| 3c 20 58 56 45 43 4c 45 | 4e 20 28 69 6e 73 6e 2c |< XVECLE|N (insn,|
|00000c60| 20 31 29 3b 20 69 2b 2b | 29 0d 20 20 20 20 20 20 | 1); i++|). |
|00000c70| 77 61 6c 6b 5f 69 6e 73 | 6e 5f 70 61 72 74 20 28 |walk_ins|n_part (|
|00000c80| 58 56 45 43 45 58 50 20 | 28 69 6e 73 6e 2c 20 31 |XVECEXP |(insn, 1|
|00000c90| 2c 20 69 29 29 3b 0d 0d | 20 20 69 66 20 28 63 6c |, i));..| if (cl|
|00000ca0| 6f 62 62 65 72 73 5f 73 | 65 65 6e 5f 74 68 69 73 |obbers_s|een_this|
|00000cb0| 5f 69 6e 73 6e 20 3e 20 | 6d 61 78 5f 63 6c 6f 62 |_insn > |max_clob|
|00000cc0| 62 65 72 73 5f 70 65 72 | 5f 69 6e 73 6e 5f 66 6c |bers_per|_insn_fl|
|00000cd0| 61 67 29 0d 20 20 20 20 | 6d 61 78 5f 63 6c 6f 62 |ag). |max_clob|
|00000ce0| 62 65 72 73 5f 70 65 72 | 5f 69 6e 73 6e 5f 66 6c |bers_per|_insn_fl|
|00000cf0| 61 67 20 3d 20 63 6c 6f | 62 62 65 72 73 5f 73 65 |ag = clo|bbers_se|
|00000d00| 65 6e 5f 74 68 69 73 5f | 69 6e 73 6e 3b 0d 20 20 |en_this_|insn;. |
|00000d10| 69 66 20 28 64 75 70 5f | 6f 70 65 72 61 6e 64 73 |if (dup_|operands|
|00000d20| 5f 73 65 65 6e 5f 74 68 | 69 73 5f 69 6e 73 6e 20 |_seen_th|is_insn |
|00000d30| 3e 20 6d 61 78 5f 64 75 | 70 5f 6f 70 65 72 61 6e |> max_du|p_operan|
|00000d40| 64 73 5f 66 6c 61 67 29 | 0d 20 20 20 20 6d 61 78 |ds_flag)|. max|
|00000d50| 5f 64 75 70 5f 6f 70 65 | 72 61 6e 64 73 5f 66 6c |_dup_ope|rands_fl|
|00000d60| 61 67 20 3d 20 64 75 70 | 5f 6f 70 65 72 61 6e 64 |ag = dup|_operand|
|00000d70| 73 5f 73 65 65 6e 5f 74 | 68 69 73 5f 69 6e 73 6e |s_seen_t|his_insn|
|00000d80| 3b 0d 7d 0d 0d 2f 2a 20 | 53 69 6d 69 6c 61 72 20 |;.}../* |Similar |
|00000d90| 62 75 74 20 73 63 61 6e | 20 61 20 64 65 66 69 6e |but scan| a defin|
|00000da0| 65 5f 65 78 70 61 6e 64 | 2e 20 20 2a 2f 0d 0d 76 |e_expand|. */..v|
|00000db0| 6f 69 64 0d 67 65 6e 5f | 65 78 70 61 6e 64 20 28 |oid.gen_|expand (|
|00000dc0| 69 6e 73 6e 29 0d 20 20 | 20 20 20 72 74 78 20 69 |insn). | rtx i|
|00000dd0| 6e 73 6e 3b 0d 7b 0d 20 | 20 69 6e 74 20 69 3b 0d |nsn;.{. | int i;.|
|00000de0| 0d 20 20 2f 2a 20 57 61 | 6c 6b 20 74 68 65 20 69 |. /* Wa|lk the i|
|00000df0| 6e 73 6e 20 70 61 74 74 | 65 72 6e 20 74 6f 20 67 |nsn patt|ern to g|
|00000e00| 61 74 68 65 72 20 74 68 | 65 20 23 64 65 66 69 6e |ather th|e #defin|
|00000e10| 65 27 73 20 73 74 61 74 | 75 73 2e 20 20 2a 2f 0d |e's stat|us. */.|
|00000e20| 0d 20 20 2f 2a 20 4e 6f | 74 65 20 74 68 61 74 20 |. /* No|te that |
|00000e30| 77 65 20 64 6f 6e 27 74 | 20 62 6f 74 68 65 72 20 |we don't| bother |
|00000e40| 72 65 63 6f 72 64 69 6e | 67 20 74 68 65 20 6e 75 |recordin|g the nu|
|00000e50| 6d 62 65 72 20 6f 66 20 | 4d 41 54 43 48 5f 44 55 |mber of |MATCH_DU|
|00000e60| 50 73 0d 20 20 20 20 20 | 74 68 61 74 20 6f 63 63 |Ps. |that occ|
|00000e70| 75 72 20 69 6e 20 61 20 | 67 65 6e 5f 65 78 70 61 |ur in a |gen_expa|
|00000e80| 6e 64 2c 20 62 65 63 61 | 75 73 65 20 6f 6e 6c 79 |nd, beca|use only|
|00000e90| 20 72 65 6c 6f 61 64 20 | 63 61 72 65 73 20 61 62 | reload |cares ab|
|00000ea0| 6f 75 74 20 74 68 61 74 | 2e 20 20 2a 2f 0d 20 20 |out that|. */. |
|00000eb0| 69 66 20 28 58 56 45 43 | 20 28 69 6e 73 6e 2c 20 |if (XVEC| (insn, |
|00000ec0| 31 29 20 21 3d 20 30 29 | 0d 20 20 20 20 66 6f 72 |1) != 0)|. for|
|00000ed0| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 58 56 45 | (i = 0;| i < XVE|
|00000ee0| 43 4c 45 4e 20 28 69 6e | 73 6e 2c 20 31 29 3b 20 |CLEN (in|sn, 1); |
|00000ef0| 69 2b 2b 29 0d 20 20 20 | 20 20 20 7b 0d 09 2f 2a |i++). | {../*|
|00000f00| 20 43 6f 6d 70 75 74 65 | 20 74 68 65 20 6d 61 78 | Compute| the max|
|00000f10| 69 6d 75 6d 20 53 45 54 | 73 20 61 6e 64 20 43 4c |imum SET|s and CL|
|00000f20| 4f 42 42 45 52 53 0d 09 | 20 20 20 69 6e 20 61 6e |OBBERS..| in an|
|00000f30| 79 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 73 75 62 |y one of| the sub|
|00000f40| 2d 69 6e 73 6e 73 3b 0d | 09 20 20 20 64 6f 6e 27 |-insns;.|. don'|
|00000f50| 74 20 73 75 6d 20 61 63 | 72 6f 73 73 20 61 6c 6c |t sum ac|ross all|
|00000f60| 20 6f 66 20 74 68 65 6d | 2e 20 20 2a 2f 0d 09 63 | of them|. */..c|
|00000f70| 6c 6f 62 62 65 72 73 5f | 73 65 65 6e 5f 74 68 69 |lobbers_|seen_thi|
|00000f80| 73 5f 69 6e 73 6e 20 3d | 20 30 3b 0d 0d 09 77 61 |s_insn =| 0;...wa|
|00000f90| 6c 6b 5f 69 6e 73 6e 5f | 70 61 72 74 20 28 58 56 |lk_insn_|part (XV|
|00000fa0| 45 43 45 58 50 20 28 69 | 6e 73 6e 2c 20 31 2c 20 |ECEXP (i|nsn, 1, |
|00000fb0| 69 29 29 3b 0d 0d 09 69 | 66 20 28 63 6c 6f 62 62 |i));...i|f (clobb|
|00000fc0| 65 72 73 5f 73 65 65 6e | 5f 74 68 69 73 5f 69 6e |ers_seen|_this_in|
|00000fd0| 73 6e 20 3e 20 6d 61 78 | 5f 63 6c 6f 62 62 65 72 |sn > max|_clobber|
|00000fe0| 73 5f 70 65 72 5f 69 6e | 73 6e 5f 66 6c 61 67 29 |s_per_in|sn_flag)|
|00000ff0| 0d 09 20 20 6d 61 78 5f | 63 6c 6f 62 62 65 72 73 |.. max_|clobbers|
|00001000| 5f 70 65 72 5f 69 6e 73 | 6e 5f 66 6c 61 67 20 3d |_per_ins|n_flag =|
|00001010| 20 63 6c 6f 62 62 65 72 | 73 5f 73 65 65 6e 5f 74 | clobber|s_seen_t|
|00001020| 68 69 73 5f 69 6e 73 6e | 3b 0d 20 20 20 20 20 20 |his_insn|;. |
|00001030| 7d 0d 7d 0d 0d 76 6f 69 | 64 0d 67 65 6e 5f 70 65 |}.}..voi|d.gen_pe|
|00001040| 65 70 68 6f 6c 65 20 28 | 70 65 65 70 29 0d 20 20 |ephole (|peep). |
|00001050| 20 20 20 72 74 78 20 70 | 65 65 70 3b 0d 7b 0d 20 | rtx p|eep;.{. |
|00001060| 20 69 6e 74 20 69 3b 0d | 0d 20 20 2f 2a 20 4c 6f | int i;.|. /* Lo|
|00001070| 6f 6b 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 70 |ok throu|gh the p|
|00001080| 61 74 74 65 72 6e 73 20 | 74 68 61 74 20 61 72 65 |atterns |that are|
|00001090| 20 6d 61 74 63 68 65 64 | 0d 20 20 20 20 20 74 6f | matched|. to|
|000010a0| 20 63 6f 6d 70 75 74 65 | 20 74 68 65 20 6d 61 78 | compute| the max|
|000010b0| 69 6d 75 6d 20 6f 70 65 | 72 61 6e 64 20 6e 75 6d |imum ope|rand num|
|000010c0| 62 65 72 2e 20 20 2a 2f | 0d 20 20 66 6f 72 20 28 |ber. */|. for (|
|000010d0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 58 56 45 43 4c |i = 0; i| < XVECL|
|000010e0| 45 4e 20 28 70 65 65 70 | 2c 20 30 29 3b 20 69 2b |EN (peep|, 0); i+|
|000010f0| 2b 29 0d 20 20 20 20 77 | 61 6c 6b 5f 69 6e 73 6e |+). w|alk_insn|
|00001100| 5f 70 61 72 74 20 28 58 | 56 45 43 45 58 50 20 28 |_part (X|VECEXP (|
|00001110| 70 65 65 70 2c 20 30 2c | 20 69 29 29 3b 0d 7d 0d |peep, 0,| i));.}.|
|00001120| 0c 0d 69 6e 74 0d 78 6d | 61 6c 6c 6f 63 20 28 73 |..int.xm|alloc (s|
|00001130| 69 7a 65 29 0d 7b 0d 20 | 20 72 65 67 69 73 74 65 |ize).{. | registe|
|00001140| 72 20 69 6e 74 20 76 61 | 6c 20 3d 20 6d 61 6c 6c |r int va|l = mall|
|00001150| 6f 63 20 28 73 69 7a 65 | 29 3b 0d 0d 20 20 69 66 |oc (size|);.. if|
|00001160| 20 28 76 61 6c 20 3d 3d | 20 30 29 0d 20 20 20 20 | (val ==| 0). |
|00001170| 66 61 74 61 6c 20 28 22 | 76 69 72 74 75 61 6c 20 |fatal ("|virtual |
|00001180| 6d 65 6d 6f 72 79 20 65 | 78 68 61 75 73 74 65 64 |memory e|xhausted|
|00001190| 22 29 3b 0d 0d 20 20 72 | 65 74 75 72 6e 20 76 61 |");.. r|eturn va|
|000011a0| 6c 3b 0d 7d 0d 0d 69 6e | 74 0d 78 72 65 61 6c 6c |l;.}..in|t.xreall|
|000011b0| 6f 63 20 28 70 74 72 2c | 20 73 69 7a 65 29 0d 20 |oc (ptr,| size). |
|000011c0| 20 20 20 20 63 68 61 72 | 20 2a 70 74 72 3b 0d 20 | char| *ptr;. |
|000011d0| 20 20 20 20 69 6e 74 20 | 73 69 7a 65 3b 0d 7b 0d | int |size;.{.|
|000011e0| 20 20 69 6e 74 20 72 65 | 73 75 6c 74 20 3d 20 72 | int re|sult = r|
|000011f0| 65 61 6c 6c 6f 63 20 28 | 70 74 72 2c 20 73 69 7a |ealloc (|ptr, siz|
|00001200| 65 29 3b 0d 20 20 69 66 | 20 28 21 72 65 73 75 6c |e);. if| (!resul|
|00001210| 74 29 0d 20 20 20 20 66 | 61 74 61 6c 20 28 22 76 |t). f|atal ("v|
|00001220| 69 72 74 75 61 6c 20 6d | 65 6d 6f 72 79 20 65 78 |irtual m|emory ex|
|00001230| 68 61 75 73 74 65 64 22 | 29 3b 0d 20 20 72 65 74 |hausted"|);. ret|
|00001240| 75 72 6e 20 72 65 73 75 | 6c 74 3b 0d 7d 0d 0d 76 |urn resu|lt;.}..v|
|00001250| 6f 69 64 0d 66 61 74 61 | 6c 20 28 73 2c 20 61 31 |oid.fata|l (s, a1|
|00001260| 2c 20 61 32 29 0d 20 20 | 20 20 20 63 68 61 72 20 |, a2). | char |
|00001270| 2a 73 3b 0d 7b 0d 20 20 | 66 70 72 69 6e 74 66 20 |*s;.{. |fprintf |
|00001280| 28 73 74 64 65 72 72 2c | 20 22 67 65 6e 63 6f 6e |(stderr,| "gencon|
|00001290| 66 69 67 3a 20 22 29 3b | 0d 20 20 66 70 72 69 6e |fig: ");|. fprin|
|000012a0| 74 66 20 28 73 74 64 65 | 72 72 2c 20 73 2c 20 61 |tf (stde|rr, s, a|
|000012b0| 31 2c 20 61 32 29 3b 0d | 20 20 66 70 72 69 6e 74 |1, a2);.| fprint|
|000012c0| 66 20 28 73 74 64 65 72 | 72 2c 20 22 5c 6e 22 29 |f (stder|r, "\n")|
|000012d0| 3b 0d 20 20 65 78 69 74 | 20 28 46 41 54 41 4c 5f |;. exit| (FATAL_|
|000012e0| 45 58 49 54 5f 43 4f 44 | 45 29 3b 0d 7d 0d 0d 2f |EXIT_COD|E);.}../|
|000012f0| 2a 20 4d 6f 72 65 20 27 | 66 72 69 65 6e 64 6c 79 |* More '|friendly|
|00001300| 27 20 61 62 6f 72 74 20 | 74 68 61 74 20 70 72 69 |' abort |that pri|
|00001310| 6e 74 73 20 74 68 65 20 | 6c 69 6e 65 20 61 6e 64 |nts the |line and|
|00001320| 20 66 69 6c 65 2e 0d 20 | 20 20 63 6f 6e 66 69 67 | file.. | config|
|00001330| 2e 68 20 63 61 6e 20 23 | 64 65 66 69 6e 65 20 61 |.h can #|define a|
|00001340| 62 6f 72 74 20 66 61 6e | 63 79 5f 61 62 6f 72 74 |bort fan|cy_abort|
|00001350| 20 69 66 20 79 6f 75 20 | 6c 69 6b 65 20 74 68 61 | if you |like tha|
|00001360| 74 20 73 6f 72 74 20 6f | 66 20 74 68 69 6e 67 2e |t sort o|f thing.|
|00001370| 20 20 2a 2f 0d 0d 23 69 | 66 64 65 66 20 4d 50 57 | */..#i|fdef MPW|
|00001380| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 54 79 70 65 73 |.#includ|e <Types|
|00001390| 2e 68 3e 0d 23 65 6e 64 | 69 66 20 2f 2a 20 4d 50 |.h>.#end|if /* MP|
|000013a0| 57 20 2a 2f 0d 0d 76 6f | 69 64 0d 66 61 6e 63 79 |W */..vo|id.fancy|
|000013b0| 5f 61 62 6f 72 74 20 28 | 29 0d 7b 0d 23 69 66 64 |_abort (|).{.#ifd|
|000013c0| 65 66 20 4d 50 57 0d 20 | 20 2f 2a 20 54 68 69 73 |ef MPW. | /* This|
|000013d0| 20 67 65 74 73 20 74 6f | 20 4d 61 63 73 62 75 67 | gets to| Macsbug|
|000013e0| 20 73 6f 20 77 65 20 63 | 61 6e 20 6d 61 79 62 65 | so we c|an maybe|
|000013f0| 20 66 69 67 75 72 65 20 | 6f 75 74 20 77 68 61 74 | figure |out what|
|00001400| 20 68 61 70 70 65 6e 65 | 64 2e 20 2a 2f 0d 20 20 | happene|d. */. |
|00001410| 44 65 62 75 67 67 65 72 | 28 29 3b 0d 23 65 6e 64 |Debugger|();.#end|
|00001420| 69 66 20 2f 2a 20 4d 50 | 57 20 2a 2f 0d 20 20 66 |if /* MP|W */. f|
|00001430| 61 74 61 6c 20 28 22 49 | 6e 74 65 72 6e 61 6c 20 |atal ("I|nternal |
|00001440| 67 63 63 20 61 62 6f 72 | 74 2e 22 29 3b 0d 7d 0d |gcc abor|t.");.}.|
|00001450| 0c 0d 69 6e 74 0d 6d 61 | 69 6e 20 28 61 72 67 63 |..int.ma|in (argc|
|00001460| 2c 20 61 72 67 76 29 0d | 20 20 20 20 20 69 6e 74 |, argv).| int|
|00001470| 20 61 72 67 63 3b 0d 20 | 20 20 20 20 63 68 61 72 | argc;. | char|
|00001480| 20 2a 2a 61 72 67 76 3b | 0d 7b 0d 20 20 72 74 78 | **argv;|.{. rtx|
|00001490| 20 64 65 73 63 3b 0d 20 | 20 46 49 4c 45 20 2a 69 | desc;. | FILE *i|
|000014a0| 6e 66 69 6c 65 3b 0d 20 | 20 65 78 74 65 72 6e 20 |nfile;. | extern |
|000014b0| 72 74 78 20 72 65 61 64 | 5f 72 74 78 20 28 29 3b |rtx read|_rtx ();|
|000014c0| 0d 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |. regis|ter int |
|000014d0| 63 3b 0d 0d 20 20 6f 62 | 73 74 61 63 6b 5f 69 6e |c;.. ob|stack_in|
|000014e0| 69 74 20 28 72 74 6c 5f | 6f 62 73 74 61 63 6b 29 |it (rtl_|obstack)|
|000014f0| 3b 0d 0d 20 20 69 66 20 | 28 61 72 67 63 20 3c 3d |;.. if |(argc <=|
|00001500| 20 31 29 0d 20 20 20 20 | 66 61 74 61 6c 20 28 22 | 1). |fatal ("|
|00001510| 4e 6f 20 69 6e 70 75 74 | 20 66 69 6c 65 20 6e 61 |No input| file na|
|00001520| 6d 65 2e 22 29 3b 0d 0d | 20 20 69 6e 66 69 6c 65 |me.");..| infile|
|00001530| 20 3d 20 66 6f 70 65 6e | 20 28 61 72 67 76 5b 31 | = fopen| (argv[1|
|00001540| 5d 2c 20 22 72 22 29 3b | 0d 20 20 69 66 20 28 69 |], "r");|. if (i|
|00001550| 6e 66 69 6c 65 20 3d 3d | 20 30 29 0d 20 20 20 20 |nfile ==| 0). |
|00001560| 7b 0d 20 20 20 20 20 20 | 70 65 72 72 6f 72 20 28 |{. |perror (|
|00001570| 61 72 67 76 5b 31 5d 29 | 3b 0d 20 20 20 20 20 20 |argv[1])|;. |
|00001580| 65 78 69 74 20 28 46 41 | 54 41 4c 5f 45 58 49 54 |exit (FA|TAL_EXIT|
|00001590| 5f 43 4f 44 45 29 3b 0d | 20 20 20 20 7d 0d 0d 20 |_CODE);.| }.. |
|000015a0| 20 69 6e 69 74 5f 72 74 | 6c 20 28 29 3b 0d 0d 20 | init_rt|l ();.. |
|000015b0| 20 70 72 69 6e 74 66 20 | 28 22 2f 2a 20 47 65 6e | printf |("/* Gen|
|000015c0| 65 72 61 74 65 64 20 61 | 75 74 6f 6d 61 74 69 63 |erated a|utomatic|
|000015d0| 61 6c 6c 79 20 62 79 20 | 74 68 65 20 70 72 6f 67 |ally by |the prog|
|000015e0| 72 61 6d 20 60 67 65 6e | 63 6f 6e 66 69 67 27 5c |ram `gen|config'\|
|000015f0| 6e 5c 0d 66 72 6f 6d 20 | 74 68 65 20 6d 61 63 68 |n\.from |the mach|
|00001600| 69 6e 65 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ine desc|ription |
|00001610| 66 69 6c 65 20 60 6d 64 | 27 2e 20 20 2a 2f 5c 6e |file `md|'. */\n|
|00001620| 5c 6e 22 29 3b 0d 0d 20 | 20 2f 2a 20 52 65 61 64 |\n");.. | /* Read|
|00001630| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 64 65 73 | the mac|hine des|
|00001640| 63 72 69 70 74 69 6f 6e | 2e 20 20 2a 2f 0d 0d 20 |cription|. */.. |
|00001650| 20 77 68 69 6c 65 20 28 | 31 29 0d 20 20 20 20 7b | while (|1). {|
|00001660| 0d 20 20 20 20 20 20 63 | 20 3d 20 72 65 61 64 5f |. c| = read_|
|00001670| 73 6b 69 70 5f 73 70 61 | 63 65 73 20 28 69 6e 66 |skip_spa|ces (inf|
|00001680| 69 6c 65 29 3b 0d 20 20 | 20 20 20 20 69 66 20 28 |ile);. | if (|
|00001690| 63 20 3d 3d 20 45 4f 46 | 29 0d 09 62 72 65 61 6b |c == EOF|)..break|
|000016a0| 3b 0d 20 20 20 20 20 20 | 75 6e 67 65 74 63 20 28 |;. |ungetc (|
|000016b0| 63 2c 20 69 6e 66 69 6c | 65 29 3b 0d 0d 20 20 20 |c, infil|e);.. |
|000016c0| 20 20 20 64 65 73 63 20 | 3d 20 72 65 61 64 5f 72 | desc |= read_r|
|000016d0| 74 78 20 28 69 6e 66 69 | 6c 65 29 3b 0d 20 20 20 |tx (infi|le);. |
|000016e0| 20 20 20 69 66 20 28 47 | 45 54 5f 43 4f 44 45 20 | if (G|ET_CODE |
|000016f0| 28 64 65 73 63 29 20 3d | 3d 20 44 45 46 49 4e 45 |(desc) =|= DEFINE|
|00001700| 5f 49 4e 53 4e 29 0d 09 | 67 65 6e 5f 69 6e 73 6e |_INSN)..|gen_insn|
|00001710| 20 28 64 65 73 63 29 3b | 0d 20 20 20 20 20 20 69 | (desc);|. i|
|00001720| 66 20 28 47 45 54 5f 43 | 4f 44 45 20 28 64 65 73 |f (GET_C|ODE (des|
|00001730| 63 29 20 3d 3d 20 44 45 | 46 49 4e 45 5f 45 58 50 |c) == DE|FINE_EXP|
|00001740| 41 4e 44 29 0d 09 67 65 | 6e 5f 65 78 70 61 6e 64 |AND)..ge|n_expand|
|00001750| 20 28 64 65 73 63 29 3b | 0d 20 20 20 20 20 20 69 | (desc);|. i|
|00001760| 66 20 28 47 45 54 5f 43 | 4f 44 45 20 28 64 65 73 |f (GET_C|ODE (des|
|00001770| 63 29 20 3d 3d 20 44 45 | 46 49 4e 45 5f 50 45 45 |c) == DE|FINE_PEE|
|00001780| 50 48 4f 4c 45 29 0d 09 | 67 65 6e 5f 70 65 65 70 |PHOLE)..|gen_peep|
|00001790| 68 6f 6c 65 20 28 64 65 | 73 63 29 3b 0d 20 20 20 |hole (de|sc);. |
|000017a0| 20 7d 0d 0d 20 20 2f 2a | 20 33 20 6d 6f 72 65 20 | }.. /*| 3 more |
|000017b0| 74 68 61 6e 20 6e 65 65 | 64 65 64 20 66 6f 72 20 |than nee|ded for |
|000017c0| 74 68 69 73 20 6d 64 20 | 66 69 6c 65 2c 20 66 6f |this md |file, fo|
|000017d0| 72 20 74 68 65 20 73 61 | 6b 65 20 6f 66 20 61 73 |r the sa|ke of as|
|000017e0| 6d 20 63 6f 6e 73 74 72 | 75 63 74 73 2e 20 20 2a |m constr|ucts. *|
|000017f0| 2f 0d 20 20 70 72 69 6e | 74 66 20 28 22 5c 6e 23 |/. prin|tf ("\n#|
|00001800| 64 65 66 69 6e 65 20 4d | 41 58 5f 52 45 43 4f 47 |define M|AX_RECOG|
|00001810| 5f 4f 50 45 52 41 4e 44 | 53 20 25 64 5c 6e 22 2c |_OPERAND|S %d\n",|
|00001820| 20 6d 61 78 5f 72 65 63 | 6f 67 5f 6f 70 65 72 61 | max_rec|og_opera|
|00001830| 6e 64 73 5f 66 6c 61 67 | 20 2b 20 34 29 3b 0d 0d |nds_flag| + 4);..|
|00001840| 20 20 69 66 20 28 6d 61 | 78 5f 64 75 70 5f 6f 70 | if (ma|x_dup_op|
|00001850| 65 72 61 6e 64 73 5f 66 | 6c 61 67 20 3d 3d 20 30 |erands_f|lag == 0|
|00001860| 29 0d 20 20 20 20 6d 61 | 78 5f 64 75 70 5f 6f 70 |). ma|x_dup_op|
|00001870| 65 72 61 6e 64 73 5f 66 | 6c 61 67 20 3d 20 31 3b |erands_f|lag = 1;|
|00001880| 0d 20 20 70 72 69 6e 74 | 66 20 28 22 5c 6e 23 64 |. print|f ("\n#d|
|00001890| 65 66 69 6e 65 20 4d 41 | 58 5f 44 55 50 5f 4f 50 |efine MA|X_DUP_OP|
|000018a0| 45 52 41 4e 44 53 20 25 | 64 5c 6e 22 2c 20 6d 61 |ERANDS %|d\n", ma|
|000018b0| 78 5f 64 75 70 5f 6f 70 | 65 72 61 6e 64 73 5f 66 |x_dup_op|erands_f|
|000018c0| 6c 61 67 29 3b 0d 0d 20 | 20 69 66 20 28 72 65 67 |lag);.. | if (reg|
|000018d0| 69 73 74 65 72 5f 63 6f | 6e 73 74 72 61 69 6e 74 |ister_co|nstraint|
|000018e0| 5f 66 6c 61 67 29 0d 20 | 20 20 20 70 72 69 6e 74 |_flag). | print|
|000018f0| 66 20 28 22 23 64 65 66 | 69 6e 65 20 52 45 47 49 |f ("#def|ine REGI|
|00001900| 53 54 45 52 5f 43 4f 4e | 53 54 52 41 49 4e 54 53 |STER_CON|STRAINTS|
|00001910| 5c 6e 22 29 3b 0d 0d 20 | 20 66 66 6c 75 73 68 20 |\n");.. | fflush |
|00001920| 28 73 74 64 6f 75 74 29 | 3b 0d 20 20 65 78 69 74 |(stdout)|;. exit|
|00001930| 20 28 66 65 72 72 6f 72 | 20 28 73 74 64 6f 75 74 | (ferror| (stdout|
|00001940| 29 20 21 3d 20 30 20 3f | 20 46 41 54 41 4c 5f 45 |) != 0 ?| FATAL_E|
|00001950| 58 49 54 5f 43 4f 44 45 | 20 3a 20 53 55 43 43 45 |XIT_CODE| : SUCCE|
|00001960| 53 53 5f 45 58 49 54 5f | 43 4f 44 45 29 3b 0d 7d |SS_EXIT_|CODE);.}|
|00001970| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001990| 5f 45 58 49 54 5f 43 4f | 44 45 29 3b 0d 7d 0d 61 |_EXIT_CO|DE);.}.a|
|000019a0| 74 20 73 74 61 72 74 20 | 61 73 20 77 65 6c 6c 2e |t start |as well.|
|000019b0| 0b 67 65 6e 63 6f 6e 66 | 69 67 2e 63 02 00 00 00 |.genconf|ig.c....|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 a3 81 52 5a 00 00 | 00 00 00 00 01 ac 6c 6f |....RZ..|......lo|
|00001a00| 63 6b 5f 6e 65 77 5f 6c | 69 76 65 5f 61 74 5f 65 |ck_new_l|ive_at_e|
|00001a10| 6e 64 5b 69 5d 5b 6a 5d | 0d 09 09 09 26 20 7e 62 |nd[i][j]|....& ~b|
|00001a20| 61 73 69 63 5f 62 6c 6f | 63 6b 5f 6c 69 76 65 5f |asic_blo|ck_live_|
|00001a30| 61 74 5f 65 6e 64 5b 69 | 5d 5b 6a 5d 3b 0d 09 09 |at_end[i|][j];...|
|00001a40| 20 20 62 61 73 69 63 5f | 62 6c 6f 63 6b 5f 6c 69 | basic_|block_li|
|00001a50| 76 65 5f 61 74 5f 73 74 | 61 72 74 5b 69 5d 5b 6a |ve_at_st|art[i][j|
|00001a60| 5d 20 7c 3d 20 78 3b 0d | 09 09 20 20 62 61 73 69 |] |= x;.|.. basi|
|00001a70| 63 5f 62 6c 6f 63 6b 5f | 6c 69 76 65 5f 61 74 5f |c_block_|live_at_|
|00001a80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 70 05 0b |...H..Mo|naco.p..|
|00001a90| 41 75 74 6f 20 49 6e 64 | 65 6e 74 00 00 00 00 00 |Auto Ind|ent.....|
|00001aa0| 00 07 00 0f 00 19 00 06 | 00 04 00 46 00 67 01 e7 |........|...F.g..|
|00001ab0| 02 80 00 3c 00 24 01 dd | 02 3d a3 65 ca 80 00 00 |...<.$..|.=.e....|
|00001ac0| 00 86 00 00 00 86 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00001ad0| 00 46 00 67 01 e7 02 80 | 00 3c 00 24 01 dd 02 3d |.F.g....|.<.$...=|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 16 |.....n..|.n...>..|
|00001b00| 83 c8 09 ec 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00001b10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 03 f0 ff ff 00 00 00 4c | 00 18 6c 40 00 00 00 00 |.......L|..l@....|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+